increment years and months by two not three on double clicks, patch
authorTim Janik <timj@gtk.org>
Sat, 20 Feb 1999 19:09:21 +0000 (19:09 +0000)
committerTim Janik <timj@src.gnome.org>
Sat, 20 Feb 1999 19:09:21 +0000 (19:09 +0000)
Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>

        * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
        months by two not three on double clicks, patch provided by Nick Lamb
        <njl98r@ecs.soton.ac.uk>.

ChangeLog
ChangeLog.pre-2-0
ChangeLog.pre-2-10
ChangeLog.pre-2-2
ChangeLog.pre-2-4
ChangeLog.pre-2-6
ChangeLog.pre-2-8
gtk/gtkcalendar.c

index c520576ef2376ca1c0d57fbc819a220bf999d46c..c1753ae7350cd7ed10ad9a07e77f3546737c9e76 100644 (file)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,9 @@
+Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
+       months by two not three on double clicks, patch provided by Nick Lamb
+       <njl98r@ecs.soton.ac.uk>.
+
 Sat Feb 20 19:44:36 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: added ::modal argument.
index c520576ef2376ca1c0d57fbc819a220bf999d46c..c1753ae7350cd7ed10ad9a07e77f3546737c9e76 100644 (file)
@@ -1,3 +1,9 @@
+Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
+       months by two not three on double clicks, patch provided by Nick Lamb
+       <njl98r@ecs.soton.ac.uk>.
+
 Sat Feb 20 19:44:36 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: added ::modal argument.
index c520576ef2376ca1c0d57fbc819a220bf999d46c..c1753ae7350cd7ed10ad9a07e77f3546737c9e76 100644 (file)
@@ -1,3 +1,9 @@
+Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
+       months by two not three on double clicks, patch provided by Nick Lamb
+       <njl98r@ecs.soton.ac.uk>.
+
 Sat Feb 20 19:44:36 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: added ::modal argument.
index c520576ef2376ca1c0d57fbc819a220bf999d46c..c1753ae7350cd7ed10ad9a07e77f3546737c9e76 100644 (file)
@@ -1,3 +1,9 @@
+Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
+       months by two not three on double clicks, patch provided by Nick Lamb
+       <njl98r@ecs.soton.ac.uk>.
+
 Sat Feb 20 19:44:36 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: added ::modal argument.
index c520576ef2376ca1c0d57fbc819a220bf999d46c..c1753ae7350cd7ed10ad9a07e77f3546737c9e76 100644 (file)
@@ -1,3 +1,9 @@
+Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
+       months by two not three on double clicks, patch provided by Nick Lamb
+       <njl98r@ecs.soton.ac.uk>.
+
 Sat Feb 20 19:44:36 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: added ::modal argument.
index c520576ef2376ca1c0d57fbc819a220bf999d46c..c1753ae7350cd7ed10ad9a07e77f3546737c9e76 100644 (file)
@@ -1,3 +1,9 @@
+Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
+       months by two not three on double clicks, patch provided by Nick Lamb
+       <njl98r@ecs.soton.ac.uk>.
+
 Sat Feb 20 19:44:36 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: added ::modal argument.
index c520576ef2376ca1c0d57fbc819a220bf999d46c..c1753ae7350cd7ed10ad9a07e77f3546737c9e76 100644 (file)
@@ -1,3 +1,9 @@
+Sat Feb 20 20:04:48 1999  Tim Janik  <timj@gtk.org>
+
+       * gtk/gtkcalendar.c (gtk_calendar_button_press): increment years and
+       months by two not three on double clicks, patch provided by Nick Lamb
+       <njl98r@ecs.soton.ac.uk>.
+
 Sat Feb 20 19:44:36 1999  Tim Janik  <timj@gtk.org>
 
        * gtk/gtkwindow.c: added ::modal argument.
index f3d081b23adec3124d48370867b02c267241fbe5..db07340a47615c4603b6da4aa58d6e7bef5e1b21 100644 (file)
@@ -2289,6 +2289,12 @@ gtk_calendar_button_press (GtkWidget       *widget,
   x = (gint) (event->x);
   y = (gint) (event->y);
   
+  if (event->window == private_data->main_win)
+    gtk_calendar_main_button (widget, event);
+  
+  if (event->type != GDK_BUTTON_PRESS)
+    return FALSE; /* Double-clicks? Triple-clicks? No thanks! */
+
   if (event->window == private_data->arrow_win[ARROW_MONTH_LEFT])
     gtk_calendar_set_month_prev (calendar);
   
@@ -2301,9 +2307,6 @@ gtk_calendar_button_press (GtkWidget        *widget,
   if (event->window == private_data->arrow_win[ARROW_YEAR_RIGHT])
     gtk_calendar_set_year_next (calendar);
   
-  if (event->window == private_data->main_win)
-    gtk_calendar_main_button (widget, event);
-  
   return FALSE;
 }